//
//  BaseHTTPDataManger.h
//  TBNetworking_Example
//
//  Created by apple on 2018/8/8.
//  Copyright © 2018年 lzb. All rights reserved.
//

#import "BaseDataManger.h"
#import "AFNetWorkRequestTool.h"

@interface BaseHTTPDataManger : BaseDataManger
/**
 *  发送Get请求
 *
 *  @param requestModel  请求模型
 *  @param responseClass 响应模型
 *  @param success   成功
 *  @param fail     失败
 *
 *  @return 返回接受数据
 */
- (NSURLSessionDataTask *)sendGetWithModel:(BaseResquestModel *)requestModel
                             ResponseClass:(Class)responseClass
                            sucessResponse:(void (^)(id reseponseModel))success
                              failResponse:(void(^)(NSError *error))fail;

/**
 *  发送Post请求
 *
 *  @param requestModel  请求模型
 *  @param responseClass 响应模型
 *  @param success   成功
 *  @param fail     失败
 *
 *  @return 返回接受数据
 */
- (NSURLSessionDataTask *)sendPostWithModel:(BaseResquestModel *)requestModel
                              ResponseClass:(Class)responseClass
                             sucessResponse:(void (^)(id reseponseModel))success
                               failResponse:(void(^)(NSError *error))fail;
@end
